package com.lwy.qiuchao.vending.feign;

import com.lwy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("qiuchao-ware")
public interface WareFeignService {
    /**
     *  删除指定商品的指定数目
     * */
    @RequestMapping("/ware/skuinfo/delete/{skuId}/{skuCount}")
    public R deleteNumbyskuid(@PathVariable("skuId")Long skuId,
                              @PathVariable("skuCount")Integer skuCount);
    /**
     *
     *通过skuid查询sku详细信息
     */
    @RequestMapping("/ware/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
